/*
* Copyright @2009-2012 www.happyelements.com, all rights reserved.
* Create date: 2012-7-30
* Chengzhi Yin	
* 尹成志
* chengzhi.yin@happyelements.com
*/
package com.happyelements.data
{
	import flash.display.Sprite;
	
	public class DataModel
	{
		private var _id:String;
		private var _source:String;
		private var _ref:String;
		private var _cols:Number;
		private var _rows:Number;
		
		public function DataModel()
		{
			super();
		}
		
		public function set id(value:String):void
		{
			this._id = value;
		}
		
		public function get id():String
		{
			return this._id;
		}
		
		public function set source(value:String):void
		{
			this._source = value;
		}
		
		public function get source():String
		{
			return this._source;
		}
		
		public function set ref(value:String):void
		{
			this._ref = value;
		}
			
		public function get ref():String
		{
			return this._ref;
		}
		
		public function set cols(value:Number):void
		{
			this._cols = value;
		}
		
		public function get cols():Number
		{
			return this._cols;
		}
		
		public function set rows(value:Number):void
		{
			this._rows = value;
		}
		
		public function get rows():Number
		{
			return this._rows;
		}
		
		public function toString() : String 
		{
			return "data model: " + id + " " + source + " " + cols + " " + rows;
		}
	}
}